//
//  GlobalFuction.swift
//  Exchange
//
//  Created by rui on 2018/4/16.
//  Copyright © 2018年 common. All rights reserved.
//

import UIKit


func dPrint(_ message: @autoclosure () -> Any) {
    #if DEBUG
    print(message())
    #endif
}

public func kText(_ key: String) -> String  {
   return NSLocalizedString(key, tableName: "Localizable", comment: "")
}


public func isiPhoneX() -> Bool {
    if UIScreen.main.bounds.height == 812 {
        return true
    }
    return false
}

public func isiphone5S() -> Bool {
    if UIScreen.main.bounds.size.width == 320 {
        return true
    }
    return false
}


